package com.seari.mapper;

import com.seari.bean.User;
import com.seari.pojo.DevMaintenancePlanPojo;
import com.seari.pojo.MaintenancePlanParam;
import com.seari.pojo.TreeDataPojo;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DevMaintenanceMapper {
    /**
     * 获取专业，系统，专业类型数据
     * @return
     */
    List<TreeDataPojo> getTreeData();

    /**
     * 查询维修计划列表
     * @return
     */
    List<DevMaintenancePlanPojo> getMaintenancePlanList(MaintenancePlanParam param);

    List<User> findAllUser();

    /**
     * 更新距离下次维修的天数
     * @param list
     */
    void updateDevSubMaintenancePlanDays(@Param("list") List<DevMaintenancePlanPojo> list);
}
